package com.meihua.mall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.meihua.mall.member.dao")
/**
 *  1.远程调用服务步骤
 *   引入 feign
 *   2.编写一个接口 声明这个接口需要调用远程服务
 *   3.开启远程调用功能  EnableFeignClients  扫描
 *
 * */
@EnableFeignClients("com.meihua.mall.member.feign")
public class MeihuaMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MeihuaMemberApplication.class, args);
    }

}
